<template>
    <div @click="select" class="recprdLi_container">
        <slot name="left">   
            <!-- <img src="@images/领.png" alt=""> -->
        </slot>
        <div  @click="toReadPage" class="box">
            <div class="text">
                <div class="top">
                    <div class="title"><slot name="title">{{item.title}}</slot> </div>
                <div class="top_right" @click="nextRead"> <slot name="top_right">继续阅读</slot>   <van-icon name="arrow" />  </div>
                </div>

                <slot name="text">
                    <p>{{'读至'+ item.articleTitle}}</p>
                </slot>
                <div class="bottom">
                   <p><slot name="left_bottom">{{$fromDate(item.oldTime)}} - 阅读时间: {{$WriteTime(item.readTime)}}</slot></p> 
                    <p><slot name="right_bottom"></slot></p>
                </div>
      </div>
        </div>
    </div>
</template>

<script>
    export default {
         props:{
            item:{
                type:Object,
                default:{}
            }
         },
         methods:{
            select(){
                this.$emit('selectEvent')
            },
            toReadPage(){
                this.$emit('toReadEvent')
            },
            nextRead(){
                this.$emit('NextEvent')
            }
         }
    }
</script>

<style lang="scss" scoped>

.recprdLi_container{
    width: 100%;
    display: flex;
    padding: 5px 5px;
    font-size: 0.4rem;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgb(226, 226, 226);
    div{
      &:nth-child(1){
        flex:1;
      }
    }
    .box{
        width: 100%;
        padding: 15px 0;
        display: flex;
    justify-content: space-between;

        .text{

            .top{
                display: flex;
                justify-content: space-between;
                .title{
                font-size: 0.48rem;
                font-weight: 800;
            }
            .top_right{
                margin-top: 3px;
        font-size: 0.4rem;
            color: #969ba3;
            }
            }

        p{
            margin-top: 5px;
            color: #969ba3;
        }
        .bottom{
            display: flex;
                justify-content: space-between;
                align-items: center;
        }
    }  
    }

}

</style>